/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-11-29 15:23:42
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-15 09:58:13
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('system.user.userName'),
    minWidth: 130,
    width: 'auto',
    prop: 'username',
    fixed: true
  },
  {
    label: i18n.t('system.user.name'),
    minWidth: 110,
    width: 'auto',
    prop: 'realName',
    fixed: true
  },
  {
    label: i18n.t('system.user.gender'),
    minWidth: 110,
    width: 'auto',
    prop: 'gender',
    fixed: true
  },
  // {
  //   label:i18n.t('system.user..authView'),
  //   prop:'userType',
  //   width: 130
  // },
  {
    label: i18n.t('system.user.jobNumber'),
    prop: 'employeeId',
    minWidth: 140,
    width: 'auto'
  },
  {
    label: i18n.t('system.user.phoneNumber'),
    prop: 'mobile',
    minWidth: 140,
    width: 'auto'
  },
  {
    label: i18n.t('system.user.email'),
    prop: 'email',
    minWidth: 140,
    width: 'auto'
  },
  // {
  //   label: i18n.t('system.user.status'),
  //   prop: 'state',
  //   width: 80
  // },
  {
    label: i18n.t('system.user.statusJob'),
    prop: 'workStatus',
    minWidth: 160,
    width: 'auto'
  },
  {
    label: i18n.t('system.user.onlineStatus'),
    prop: 'onlineStatus',
    minWidth: 140,
    width: 'auto'
  },
  {
    label: i18n.t('system.user.status'),
    prop: 'state',
    minWidth: 80,
    width: 'auto'
  },
  {
    label: i18n.t('system.user.creatTime'),
    prop: 'createTime',
    minWidth: 160,
    width: 'auto'
  }
]

export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:user:update'
  },
  {
    key: 'authView',
    text: i18n.t('common.authView'),
    permissions: 'upms:user:authView'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:user:delete'
  },
  {
    key: 'resetPassword',
    text: i18n.t('system.user.resetPassword'),
    permissions: 'upms:user:resetPwd'
  },
  {
    key: 'auth',
    text: i18n.t('system.user.roleSet'),
    permissions: 'upms:user:roles'
  }
]
